package com.Maykk.Demo02;

/**
 * @ClassName: MyRunnbale
 * @Description: TODO
 * @Author: MaykkStar@163.com
 */
public class MyRunnbale implements Runnable{
    @Override
    public void run() {
        for (int i = 1; i <= 20; i++) {
            System.out.printf("%-6s正在出招，现在是第 %d 招\n", Thread.currentThread().getName(), i);
            try {
                Thread.sleep(1);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }

        }
    }
}
